package com.yue92.datalife.repository;

import com.yue92.datalife.model.Moment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MomentRepository extends JpaRepository<Moment, Long> {

    List<Moment> findByDisplay(Boolean display, Sort sort);
}
